import httpInstance from "@/utils/http";

export function getAll() {
    return httpInstance({
        url: "/fund/getAll",
        method: "get",
    })
}

export function search(keyword) {
    return httpInstance({
        url: "/fund/search/" + keyword,
        method: "get",
    })
}

export function addFundApi(fund) {
    return httpInstance({
        url: "/fund/add",
        method: "put",
        data: fund
    })
}

export function putFundWhenModifyDocApi(id1, fund) {
    return httpInstance({
        url: "/document/fund/add/" + id1,
        method: "put",
        data: fund
    })
}

export function delFundWhenModifyDocApi(id1, id2) {
    return httpInstance({
        url: "/document/fund/delete/" + id1 + '/' + id2,
        method: "delete",
    })
}
